/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.information;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Observable;
import java.util.ArrayList;

/**
 * A class that represetns a workout.
 * @author Tobias Møller Kjærsgaard
 * @author Hjalte Blichfeldt Flyger
 * @author Gitte Simonsen
 * @author Claus Lund
 */
public class Workout extends Observable implements Serializable {

    //////// Fields for class Workout ////////

    private String name;
    private ArrayList<Exercise> exercise;

    //////// Constructor ////////

    public Workout(String name) {
        this.name = name;
        exercise = new ArrayList<Exercise>();
    }

    //////// Getters & Setters ////////

    public ArrayList<Exercise> getExercise() {
        return exercise;
    }

    public void setExercise(ArrayList<Exercise> exercise) {
        this.exercise = exercise;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //////// Other methods ////////

    public void addExercise(Exercise ex) {
        exercise.add(ex);
    }

    public void removeExercise(Food ex) {
        exercise.remove(ex);
    }

}
